//
//  ViewController.m
//  test
//
//  Created by AceWei on 2017/7/3.
//  Copyright © 2017年 AceWei. All rights reserved.
//

#import "ViewController.h"
#import "BottomBoxView.h"

#import <Masonry.h>
#import <MJExtension.h>
#import "UIColor+Hex.h"


@interface ViewController ()<BottomBoxViewDelegate>

@property (nonatomic, strong) UICollectionView *collectionView;
@property (nonatomic, strong) NSArray *data;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    BottomBoxView *box = [[BottomBoxView alloc] init];
    [self.view addSubview:box];
    
    
    box.delegate = self;
    
    box.backgroundColor = [UIColor colorWithHexString:@"234556" alpha:0.5];
    
    [box mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.offset(0);
        make.height.mas_equalTo(186);
        make.bottom.offset(-100);
    }];
}



- (NSArray *)addRightShoesDataSource
{
    NSString *jsonStr = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"jsonString" ofType:@"txt"] encoding:NSUTF8StringEncoding error:nil];
    
    NSArray *arr = [jsonStr mj_JSONObject];
    
    return arr;
}




- (void)viewDidLayoutSubviews {
    [super viewDidLayoutSubviews];
    self.collectionView.frame = self.view.bounds;
}





@end
